<?php

if( !$PARAPARA )
    die("Do not call me");

?>

<div id="para_forum_msgform_container">
<form id="para_forum_msgform" action="?sec=forum" method="post" onsubmit="return para_forum_uev_send_msg()">
<table id="para_forum_msgform_table">
<tbody>

<tr class="para_forum_msgform_tr">
<td class="para_forum_msgform_label">Subject:</td>
<td class="para_forum_msgform_value"><input type="text" id="para_forum_input_subject" class="para_text_input" name="subject" size="80"/></td>
</tr>

<tr class="para_forum_msgform_tr">
<td class="para_forum_msgform_label">Author:</td>
<td class="para_forum_msgform_value">
<?php
      if( $PARAPARA->is_logged_in() )
          echo htmlspecialchars($PARAPARA->get_screen_name());
      else
          echo '<input id="para_forum_input_author" type="text" class="para_text_input" name="author" />';

?></td>
</tr>


<tr class="para_forum_msgform_tr">
<td class="para_forum_msgform_label">&nbsp;</td>
<td class="para_forum_msgform_value">
<img src="images/ed_bold.png" height="24" width="24" onclick="para_forum_uev_tformat('bold')" />
<img src="images/ed_italic.png" height="24" width="24" onclick="para_forum_uev_tformat('italic')"/>
<img src="images/ed_underline.png" height="24" width="24" onclick="para_forum_uev_tformat('underline')"/>
<img src="images/ed_strike.png" height="24" width="24" onclick="para_forum_uev_tformat('strike')"/>
<img src="images/ed_list.png" height="24" width="24" onclick="para_forum_uev_tformat('ol')"/>
<img src="images/ed_list_ul.png" height="24" width="24" onclick="para_forum_uev_tformat('ul')"/>
<img src="images/ed_h1.png" height="24" width="24" onclick="para_forum_uev_tformat('h1')"/>
<img src="images/ed_h2.png" height="24" width="24" onclick="para_forum_uev_tformat('h2')"/>
</td>

</tr>

<tr class="para_forum_msgform_tr">
<td class="para_forum_msgform_label">Text</td>
<td class="para_forum_msgform_value">
<textarea id="para_forum_input_teditor" class="para_text_input" name="text" cols="80" rows="20"></textarea>
</td>
</tr>

<tr class="para_forum_msgform_tr">
<td colspan="2"class="para_forum_msgform_controls">
<input class="para_button" name="preview" type="submit" value="Preview" onclick="return para_forum_uev_preview()"/>
<input class="para_button" name="message" type="submit" value="Send"/>
</td>
</tr>

</tbody>
</table>
</form>
</div>

<div id="para_forum_msg_preview" class="para_hidden">
<h2>Preview:</h2>
<div id="para_forum_msg_preview_console">
</div>
</div>